package cn.wei.sdd.core.service;

import cn.wei.sdd.core.pojo.entity.UserAccount;
import cn.wei.sdd.core.pojo.vo.UserAccountVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 用户账户 服务类
 * </p>
 *
 * @author Wei
 * @since 2021-09-22
 */
public interface UserAccountService extends IService<UserAccount> {

    UserAccountVO getMyAccount(Long userId, Long userType);

    //根据id，userType获取账户余额
    BigDecimal getAmountByUidAndUType(Long userId, Integer userType);
}
